package demo1;

public class Test {

    public static void main(String[] args) {
        int[] array = new int[]{27,15,19,18,28,34,65,49,25,37};
        TestHeap testHeap = new TestHeap();
        testHeap.creatHeap(array);
        testHeap.offer(80);
        System.out.println(testHeap.poll());
        System.out.println(testHeap.poll());
        testHeap.heapSort();
        System.out.println("===========");
    }
}
